# -*- coding: utf-8 -*-  
#!/usr/bin/python2.7
"""静态StaticFile和Page的抽象，并且针对mako模板引擎，和本项目细化了Page"""

__authors__ = [
  '"BigYuki" <sheyuqi@gmail.com>',
]
import web
from services.DataService import DataServiceFactory

class Page:
    """抽象Page"""
    def __init__(self):
        self.templateFile='index.html'
    def getTemplateAbsPath(self):
        return self.templateFile

class BlogPage(Page):
    """针对web.py的web页面"""
    def __init__(self):
        Page.__init__(self)
        self.globals=web.ctx
    
    